import request from '@/utils/request'

// 增
export function add(data) {
  return request({
    url: '/tourArea/add',
    method: 'post',
    data
  })
}

// 查
export function pageList(data) {
  return request({
    url: '/tourArea/pageList?pageNum='+data.pageNum+"&pageSize="+data.pageSize,
    method: 'post',
    data
  })
}

// 根据id查询
export function getById(id) {
  return request({
    url: '/tourArea/getById/' + id,
    method: 'get',
  })
}

// 改
export function updateById(data) {
  return request({
    url: '/tourArea/updateById',
    method: 'post',
    data
  })
}

// 删
export function deleteById(id) {
  return request({
    url: '/tourArea/deleteById/' + id,
    method: 'post',
  })
}
//查询所有信息
export function pageListAll(data) {
  return request({
    url: '/tourArea/pageList',
    method: 'post',
    data
  })
}
